

using System;
using Abp.Application.Services.Dto;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using Yozeev.BusinessLogic;

namespace Yozeev.BusinessLogic.Dtos
{
    public class TicketPriceListDto : ByBranchEntityDto<Guid> 
    {



		/// <summary>
		/// TicketId
		/// </summary>
		public Guid TicketId { get; set; }



		/// <summary>
		/// Ticket
		/// </summary>
		public Ticket Ticket { get; set; }



		/// <summary>
		/// IsEnabled
		/// </summary>
		public bool IsEnabled { get; set; }



		/// <summary>
		/// Sort
		/// </summary>
		public long Sort { get; set; }



		/// <summary>
		/// Price
		/// </summary>
		public decimal Price { get; set; }



		/// <summary>
		/// Discount
		/// </summary>
		public decimal Discount { get; set; }



		/// <summary>
		/// UpperTime
		/// </summary>
		public DateTime UpperTime { get; set; }



		/// <summary>
		/// 退款折扣
		/// </summary>
		public decimal RDiscount { get; set; }



		/// <summary>
		/// LowerTime
		/// </summary>
		public DateTime? LowerTime { get; set; }



		/// <summary>
		/// Position
		/// </summary>
		public PositionEnum Position { get; set; }



        /// <summary>
        /// 价格名称
        /// </summary>
        public string TicketName { get; set; }



		/// <summary>
		/// 票型介绍
		/// </summary>
		public TicketIntroduce TicketIntroduce { get; set; }
		public string UpperTimeStr { get { return UpperTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
        public string LowerTimeStr { get { return LowerTime != null ? ((DateTime)LowerTime).ToString("yyyy-MM-dd HH:mm:ss") : ""; } }
        public string CreationTimeStr { get { return this.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"); } }



		/// <summary>
		/// 仓位
		/// </summary>
		public WareHousePosition WarePosition { get; set; }
		/// <summary>
		/// 仓位中文名
		/// </summary>
		public string WarePositionName { get; set; }
	}
}